package com.example.sqlite.meta.service;

import com.example.sqlite.meta.dao.ExecDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ExecService {
    @Autowired
    private ExecDao execDao;

    public void dropTableIfExests(String tableName) {
        execDao.execSQL("DROP TABLE IF EXISTS " + tableName);
    }

    public void execSQL(String sql) {
        execDao.execSQL(sql);
    }
}
